/*
比如aabbbbccccccdde这么个排好序的字符串，输入c，输出c出现的次数6
*/
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <set>

using namespace std;

int countApperance(const string &str, char ch)
{
    return (int)count(str.begin(), str.end(), ch);
}

int main(int argc, char **argv)
{
    cout << countApperance("aabbbbccccccdde", 'c') << endl;
}
